import { axios } from '@/utils/request'

/**
 * 预约记录
 *
 * @author H
 */

// 预约记录- 手术预约
export function GetScheduleList(params) {
    return axios({
        url: '/schedule/getScheduleList',
        method: 'get',
        params: params
    })
}

// 预约记录 -- 作废
export function KillSchedule(params) {
    return axios({
        url: '/schedule/killSchedule',
        method: 'post',
        data: params
    })
}

// 获取医生下拉
export function SelectDeptNameAll(params) {
    return axios({
        url: '/schedule/selectDeptNameAll',
        method: 'get',
        params: params
    })
}

// 预约记录--到院预约 查询卡号
export function SelectCardNo(params) {
    return axios({
        url: '/schedule/selectCardNo',
        method: 'get',
        params: params
    })
}

// 预约记录-- 到院预约 提交
export function AddToTheHospital(params) {
    return axios({
        url: '/schedule/addToTheHospital',
        method: 'post',
        data: params
    })
}

// 预约记录 -- 到院预约 编辑
export function SelectTbCcheduler(params) {
    return axios({
        url: '/schedule/selectTbCcheduler',
        method: 'get',
        params: params
    })
}

// 预约记录 -- 到院预约 编辑提交
export function UpdateToTheHospital(params) {
    return axios({
        url: '/schedule/updateToTheHospital',
        method: 'post',
        data: params
    })
}

// 手术预约 -- 提交
export function ManualSchedule(params) {
    return axios({
        url: '/schedule/manualSchedule',
        method: 'post',
        data: params
    })
}

// 手术预约 -- 编辑
export function SelectOperationScheduler(params) {
    return axios({
        url: '/schedule/selectOperationScheduler',
        method: 'get',
        params: params
    })
}

// 手术预约 -- 编辑提交
export function EditManualSchedule(params) {
    return axios({
        url: '/schedule/editManualSchedule',
        method: 'post',
        data: params
    })
}


// 前台--预约审批
export function UpdateScheduler(params) {
    return axios({
        url: '/schedule/updateScheduler',
        method: 'get',
        params: params
    })
}


